Skip to content

fix: respect scoped simulator sets in ios runner#357

Closed
thymikee wants to merge 4 commits into
mainfrom
claude/analyze-test-coverage-cYHy8
Closed

fix: respect scoped simulator sets in ios runner#357
thymikee wants to merge 4 commits into
mainfrom
claude/analyze-test-coverage-cYHy8

Conversation

@thymikee

@thymikee thymikee commented Apr 4, 2026

Copy link
Copy Markdown
Member

No description provided.

thymikee and others added 4 commits April 3, 2026 16:22
…ct internals

Address P1 review feedback: abortAllIosRunnerSessions now releases
simulator-set redirect handles after killing processes, preventing
stale locks from blocking subsequent scoped simulator commands.

Simplify redirect internals:
- Store redirect handle directly on session instead of wrapping in closure
- Simplify sameResolvedPath to direct comparison instead of set intersection
- Collapse double liveness check in clearStaleXcodebuildSimulatorSetLock

https://claude.ai/code/session_01VsAUdPKbQoGbwvftBZtXfB
@thymikee thymikee closed this Apr 4, 2026
@github-actions

github-actions Bot commented Apr 4, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-04-04 12:24 UTC

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf2fbd89b4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +158 to +162
reconcileXcodebuildSimulatorSetRedirect({
xctestDeviceSetPath,
backupPath,
});
await releaseLock();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Always release lock on redirect setup failures

If reconcileXcodebuildSimulatorSetRedirect(...) throws in this error path (for example due a filesystem permission or rename failure while restoring), releaseLock() is never reached, so the process leaves xctest-device-set.lock behind as an active lock owner. Subsequent iOS runner startups in the same process will then fail with lock timeout even though no redirect is active. Put lock release in a finally block so reconciliation errors cannot leak the lock.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants